<script setup>
import Table from './components/TableMain.vue'
import { ref } from 'vue'

const topInfo = ref([
  {
    restLimit: '40%',
    count: '1'
  },
  {
    restLimit: '40%',
    count: '1'
  }
])
const deadline = ref('2024-1-10')
</script>

<template>
  <div>
    <div class="topInfo">
      <div>
        <div v-for="top in topInfo" class="limitItem">
          <div class="limit">
            基本额度{{ top.restLimit }}
          </div>
          <div>
            {{ top.count }}笔
          </div>
        </div>
      </div>
      <div class="remark">
        <p>注：</p>
        <p>“已使用额度占比”和“剩余客户占比”</p>
        <p>“已使用额度占比”和“剩余客户占比”</p>
        <p>“已使用额度占比”和“剩余客户占比”</p>
        <p>“已使用额度占比”和“剩余客户占比”</p>
      </div>
    </div>
    <Table />
    <div class="deadline">
      数据更新截至日期：{{ deadline }}
    </div>
  </div>
</template>

<style scoped>
.topInfo {
  margin-bottom: 20px;
  display: flex;
  align-items: center;

  .limitItem {
    display: flex;
    margin-bottom: 10px;
    align-items: center;

    >div {
      padding: 20px;
      background-color: green;
      color: white;
    }

    .limit {
      margin-right: 20px;
    }
  }

  .remark {
    margin-left: 40px;
  }
}

.deadline {
  text-align: right;
}
</style>